home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
g_man
/
cat3
/
standard
/
endpolygon.z
/
endpolygon
Wrap
Text File
|
1998-10-20
|
5KB
|
133 lines
eeeennnnddddppppoooollllyyyyggggoooonnnn((((3333GGGG)))) eeeennnnddddppppoooollllyyyyggggoooonnnn((((3333GGGG))))
NNNNAAAAMMMMEEEE
bbbbggggnnnnppppoooollllyyyyggggoooonnnn,,,, eeeennnnddddppppoooollllyyyyggggoooonnnn - delimit the vertices of a polygon
CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
vvvvooooiiiidddd bbbbggggnnnnppppoooollllyyyyggggoooonnnn(((())))
vvvvooooiiiidddd eeeennnnddddppppoooollllyyyyggggoooonnnn(((())))
PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
_n_o_n_e
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
Vertices specified after bbbbggggnnnnppppoooollllyyyyggggoooonnnn and before eeeennnnddddppppoooollllyyyyggggoooonnnn form a single
polygon. The polygon can have a maximum of 256 vertices. Use the vvvv
subroutine to specify a vertex. Self-intersecting polygons (other than
four-point bowties) may render incorrectly. If a quadrilateral projects
a self-intersecting polygon, its rendering will be hardware-specific. The
Graphics Library only guarantees that pixels outside of the convex hull
will not be modified. Also, concave polygons may not render correctly if
you have not called ccccoooonnnnccccaaaavvvveeee((((TTTTRRRRUUUUEEEE)))).
Between bbbbggggnnnnppppoooollllyyyyggggoooonnnn and eeeennnnddddppppoooollllyyyyggggoooonnnn, you can issue only the following
Graphics Library subroutines: cccc, ccccoooolllloooorrrr, ccccppppaaaacccckkkk, llllmmmmbbbbiiiinnnndddd, llllmmmmccccoooolllloooorrrr, llllmmmmddddeeeeffff,
nnnn, RRRRGGGGBBBBccccoooolllloooorrrr, tttt, and vvvv. Use llllmmmmddddeeeeffff and llllmmmmbbbbiiiinnnndddd to respecify only materials
and their properties.
By default polygon vertices are forced to the nearest pixel center prior
to scan conversion. Polygon accuracy is improved when this coercion is
defeated with the ssssuuuubbbbppppiiiixxxxeeeellll command. Subpixel vertex positioning is
especially important when polygons are scan converted with antialiasing
enabled (see ppppoooollllyyyyssssmmmmooooooootttthhhh).
After eeeennnnddddppppoooollllyyyyggggoooonnnn, the current graphics position is undefined.
SSSSEEEEEEEE AAAALLLLSSSSOOOO
backface, c, concave, frontface, polymode, polysmooth, scrsubdivide,
defpattern, shademodel, subpixel, v
NNNNOOOOTTTTEEEESSSS
If you want to use the bbbbaaaacccckkkkffffaaaacccceeee or ffffrrrroooonnnnttttffffaaaacccceeee routines, specify the
vertices in counter-clockwise order.
Although calling ccccoooonnnnccccaaaavvvveeee((((TTTTRRRRUUUUEEEE)))) will guarantee that all polygons will be
drawn correctly, on the IRIS-4D B and G models, the Personal Iris, Iris
Entry, Indy, XL, XS, XS24, XZ, Elan, and Extreme systems, doing so causes
performance to be degraded.
See the section, "2.1.4 Polygons," in the Graphics Library Programming
Guide for a discussion on the handling of non-coplanar and/or self-
intersecting polygons.
PPPPaaaaggggeeee 1111
eeeennnnddddppppoooollllyyyyggggoooonnnn((((3333GGGG)))) eeeennnnddddppppoooollllyyyyggggoooonnnn((((3333GGGG))))
On Impact and Infinite Reality llllmmmmccccoooolllloooorrrr cannot be called between
bbbbggggnnnnppppoooollllyyyyggggoooonnnn and eeeennnnddddppppoooollllyyyyggggoooonnnn
On Impact and Infinite Reality ccccoooonnnnccccaaaavvvveeee((((TTTTRRRRUUUUEEEE)))) severly hurts performance
and some non-simple four sided polygons cannot be handled correctly.
PPPPaaaaggggeeee 2222